package com.fulihui.wgj.dal.mybatis.repository;

import com.fulihui.wgj.dal.mybatis.domain.TemplateAutoLog;
import com.fulihui.wgj.dal.mybatis.mapper.TemplateAutoLogMapper;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author wang_wx
 * @date 2018-08-02
 */
@Component
public class TemplateAutoLogRepository extends BaseRepository<TemplateAutoLog> {

    @Resource
    TemplateAutoLogMapper templateAutoLogMapper;

    /**
     * 记录发送更新--如成功数、失败数、状态等--累加原来的数字
     *
     * @param templateAutoLog
     * @return
     */
    public Integer updateAccumulate(TemplateAutoLog templateAutoLog) {
        return templateAutoLogMapper.updateAccumulate(templateAutoLog);
    }
}
